package com.sc.nft.service.impl;

import com.sc.nft.dao.EcologyShareProfitServiceCenterConfDao;
import com.sc.nft.entity.EcologyShareProfitServiceCenterConf;
import com.sc.nft.service.EcologyShareProfitServiceCenterConfService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 新生态藏品分润服务中心配置 服务实现类
 * </p>
 *
 * @author liGen
 * @since 2024-11-26
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class EcologyShareProfitServiceCenterConfServiceImpl implements EcologyShareProfitServiceCenterConfService {
    private final EcologyShareProfitServiceCenterConfDao ecologyShareProfitServiceCenterConfDao;

    @Override
    public boolean saveAll(List<EcologyShareProfitServiceCenterConf> serviceCenterConfList) {
        return ecologyShareProfitServiceCenterConfDao.saveAll(serviceCenterConfList);
    }

    @Override
    public List<EcologyShareProfitServiceCenterConf> listByConfId(Long confId) {
        return ecologyShareProfitServiceCenterConfDao.listByConfId(confId);
    }


    @Override
    public Boolean removeByConfId(Long confId) {
        return ecologyShareProfitServiceCenterConfDao.removeByConfId(confId);
    }

    @Override
    public boolean saveOrUpdate(EcologyShareProfitServiceCenterConf ecologyShareProfitServiceCenterConf) {
        return ecologyShareProfitServiceCenterConfDao.saveOrUpdate(ecologyShareProfitServiceCenterConf);
    }
}
